package com.xdf.whiteaccount.service;

import com.xdf.whiteaccount.entity.CarryForward;
import com.xdf.whiteaccount.entity.ResponseResult;
import java.io.IOException;

public interface ConfigSQLBalanceService {

    /**
     * 查询余额
     * @return*/
    CarryForward balanceForwary() throws Exception;

    /**
     * 备份数据库
     * @return
     * @throws IOException
     * @throws InterruptedException
     */
    ResponseResult<Void> backups() throws IOException, InterruptedException;

    /**
     * 恢复数据库
     * @return
     * @throws IOException
     * @throws InterruptedException
     */
    ResponseResult<Void> recover() throws IOException, InterruptedException;


    /**
     * 结转数据库
     * @return
     * @throws Exception
     */
    ResponseResult<Void> backupsAndbalance() throws Exception;
}
